Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
hypercore-promisifier
Advanced tools
A Hypercore wrapper that lets you switch between callback and Promise APIs
A wrapper that provides conversion to/from callback/promise interfaces in Hypercore and RemoteHypercore.
npm i hypercore-promisifier
const hypercore = require('hypercore')
const ram = require('random-access-memory')
const { toPromises } = require('hypercore-promisifier')
const core = hypercore(ram)
// A promisified Hypercore interface
const wrapper = toPromises(core)
The API supports two methods, each one returning a compatibilty wrapper around Hypercore.
const { toCallbacks, toPromises, unwrap } = require('hypercore-promisifier')
toCallbacks(core)
takes a Hypercore-like object with a Promises API, and returns a wrapper with a
callbacks interfaced.
toPromises(core)
takes a Hypercore-like object with a callbacks API, and returns a wrapper with a
Promises interface.
unwrap(core)
takes either a wrapper object, or a normal Hypercore, and returns a normal (callbacks API) Hypercore.
MIT
FAQs
A Hypercore wrapper that lets you switch between callback and Promise APIs
The npm package hypercore-promisifier receives a total of 30 weekly downloads. As such, hypercore-promisifier popularity was classified as not popular.
We found that hypercore-promisifier demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.